# 指定基础镜像
FROM ubuntu:latest

# 安装git, golang, openssl
RUN apt-get update && apt-get install -y \
    git \
    golang

WORKDIR /root

# clone ngrok项目
RUN git clone https://github.com/inconshreveable/ngrok.git

WORKDIR /root/ngrok

RUN make

RUN apt-get autoclean && apt-get autoremove

# 指定ngrok运行入口
ENTRYPOINT ["/root/ngrok/bin/ngrokd"]
